package com.example.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.system.domain.Friend;
import com.example.system.domain.bo.FriendBo;
import com.example.system.domain.vo.FriendVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (SysFriend)表数据库访问层
 */
@Mapper
public interface FriendMapper extends BaseMapper<Friend> {
    List<FriendVo> getList(@Param("userId") int userId);

    List<FriendVo> getApplicationList(@Param("userId") int userId);

    List<FriendVo> getApplicationLogList(@Param("userId") int userId);

    void updateByUserIdAAndB(@Param("bo") FriendBo bo);

    int getLastId();

    void insertFriendList(@Param("list") List<Friend> friendList);

    void deleteList(@Param("list") List<Friend> friendDeleteList);

    void insertFriend(Friend friend);
}

